package com.etc.consumertext.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.etc.dubbodemo.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author 杰哥
 * @Title: UserController
 * @ProjectName consumertext
 * @Description: TODO
 * @date 2019/7/316:06
 */
@RestController
public class UserController {
    @Reference
    private UserService userService;


    @RequestMapping("/hello")
    public String hello(String name) {

        return userService.byName(name);

    }
}
